//
//  ITCollectionController.h
//  InTubePro
//
//  Created by seven on 2020/4/13.
//  Copyright © 2020 seven. All rights reserved.
//

#import "BaseViewController.h"

NS_ASSUME_NONNULL_BEGIN

@interface ITCollectionController : BaseViewController<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>{
    
}

IT_PROPERTY_STRONG NSMutableArray *dataSource;
IT_PROPERTY_ASSIGN int page;
IT_PROPERTY_ASSIGN long long timestamp;
IT_PROPERTY_STRONG UICollectionView *collectionView;
IT_PROPERTY_STRONG UICollectionViewFlowLayout *layout;
IT_PROPERTY_ASSIGN CGSize itemSize;

IT_PROPERTY_ASSIGN CGFloat offset;

IT_PROPERTY_ASSIGN int row;
IT_PROPERTY_ASSIGN int skip;
IT_PROPERTY_ASSIGN BOOL noMoreData;


IT_PROPERTY_ASSIGN BOOL loading;

- (void)loadData;
- (void)didLoadWithData:(NSArray *)data;

- (void)setupLayout;

- (void)refreshTableViewData;

@end

NS_ASSUME_NONNULL_END
